<!-- News.html -->
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
	<title>教师端培训窗口</title>
	<link rel="stylesheet" type="text/css" href="../../css/mui.min.css">
		<link rel="stylesheet" type="text/css" href="../../css/base.css"/>
		<link rel="stylesheet" href="../../css/CFNetPP_Base.css">
		<link rel="stylesheet" type="text/css" href="../../css/study.css" />
		<link rel="stylesheet" type="text/css" href="../../css/aui.css" />
		<link rel="stylesheet" type="text/css" href="../../css/style.css" />

</head>
	

	<body>
		
        <div class="base_navigation_bar base_style_color base_navigation_item_bar">
				<a class="base_left_item" href="#" onclick="backIndex()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
				<span>培训</span>
				<a class="base_right_item base_hide_item"> </a>
			</div>
        

	</body>
<script src="../../script/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript" src="../../script/requestTool.js"></script>
<script type="text/javascript">

    apiready = function(){
 
        openframe();
        setupNotifi();
    }

    
	function openframe() {
		var y = $('.base_navigation_bar').height();
		var h = api.winHeight - y - 52;
		api.openFrame({
			name : 'train_frame',
			url : 'trainFrame.html',
			rect : {
				x : 0,
				y : y,
				w : 'auto',
				h : h
			},
		    reload : true

		});
    }   
    
    function setupNotifi() {
		api.addEventListener({
			name : 'showTrainFrameNotifi'
		}, function(ret, err) {
			api.setFrameAttr({
			name : 'train_frame',
			hidden : false
			});

		});
		api.addEventListener({
			name : 'hideTrainFrameNotifi'
		}, function(ret, err) {
			
			api.setFrameAttr({
			name : 'train_frame',
			hidden : true
			});

		});
	}


 

</script>
</html>